import 'package:flutter/material.dart';

import '../BottomTabs.dart';

class Register2Page extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title:Text('Register2Page')),
      body: ListView(
        children: [
          Text('Register2Page'),
          RaisedButton(
            child: Text('返回'),
            onPressed: (){
              Navigator.of(context).pushAndRemoveUntil(
                MaterialPageRoute(builder: (context) => HomeBottomTabs(index:0)),
                (route) => route == null
              );
            },
          )
        ],
      ),
    );
  }

}

